/*
 * GetListaIndicesBursatilesAction.java
 *
 * Created on 11 de noviembre de 2007, 23:03
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package webportlet.model.portletfacade.plain.action;

import java.sql.Connection;
import java.util.ArrayList;
import webportlet.model.indiceBursatil.dao.SQLIndiceBursatilDAO;
import webportlet.model.indiceBursatil.dao.SQLIndiceBursatilDAOFactory;
import webportlet.model.util.InstanceNotFoundException;
import webportlet.model.util.InternalErrorException;
import webportlet.model.util.TransactionalPlainAction;

/**
 *
 * @author Alvarete
 */
public class GetListaIndicesBursatilesAction implements TransactionalPlainAction{
    
    private ArrayList <Long> listaIdentificadores;
    
    public GetListaIndicesBursatilesAction(ArrayList <Long> listaIdentificadores) {
        this.listaIdentificadores = listaIdentificadores;
    }
    
    public Object execute(Connection connection) 
        throws InstanceNotFoundException, InternalErrorException {
                
        SQLIndiceBursatilDAO indiceBursatilDAO = 
                SQLIndiceBursatilDAOFactory.getDAO();
            
        return indiceBursatilDAO.recuperarLista(connection,this.listaIdentificadores);                

    }
    
}
